import request from '@/utils/request'

//查看轮播图列表
export function selectBannerCondition(data) {
    return request({
        url: '/api/banner/selectBannerCondition',
        method: 'post',
        data: data
    })
}

//控制轮播图显示  
export function updateBannerIsDelById(data) {
    return request({
        url: '/api/banner/updateBannerIsDelById',
        method: 'post',
        data: data
    }) 
}

//修改轮播图 
export function updateBannerById(data) {
    return request({
        url: '/api/banner/updateBannerById',
        method: 'post',
        data: data
    })
}

//添加轮播图 
export function insertBanner(data) {
    return request({
        url: '/api/banner/insertBanner',
        method: 'post',
        data: data
    })
}

//查询单个轮播图
export function selectBannerById(data) {
    return request({
        url: '/api/banner/selectBannerById',
        method: 'post',
        data: data
    })
}